package com.sigmatrix.h5.exception;

public class MessageException extends RuntimeException{

	private static final long serialVersionUID = 5847846396416355554L;
	
	private String status;
	
	private Object data;
	
	public MessageException(String message){
		super(message);
	}
	public MessageException(String message,Throwable cause) {
		super(message,cause);
	}

	public MessageException(String status,String message) {
		super(message);
		this.status = status;
	}
	
	public MessageException(String status,String message,Throwable cause) {
		super(message,cause);
		this.status = status;
	}
	
	public MessageException(String status,String message,Object data) {
		super(message);
		this.status = status;
		this.data = data;
	}
	
	public MessageException(String status,String message,Object data,Throwable cause) {
		super(message,cause);
		this.status = status;
		this.data = data;
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
}
